ps_4_0
dcl_constantbuffer cb1[16], immediateIndexed
dcl_constantbuffer cb2[20], immediateIndexed
dcl_constantbuffer cb3[50], immediateIndexed
dcl_constantbuffer cb5[7], immediateIndexed
dcl_constantbuffer cb11[6], immediateIndexed
dcl_constantbuffer cb6[15], immediateIndexed
dcl_sampler s0, mode_default
dcl_sampler s1, mode_default
dcl_sampler s3, mode_default
dcl_sampler s4, mode_default
dcl_sampler s11, mode_default
dcl_sampler s15, mode_comparison
dcl_resource_texture2d (float,float,float,float) t0
dcl_resource_texture2d (float,float,float,float) t1
dcl_resource_texture2d (float,float,float,float) t3
dcl_resource_texture2d (float,float,float,float) t4
dcl_resource_texture2d (float,float,float,float) t11
dcl_resource_texture2d (float,float,float,float) t15
dcl_input_ps linear sample v0.xy
dcl_input_ps linear sample v0.zw
dcl_input_ps linear sample v1.xyzw
dcl_input_ps linear sample v2.xyz
dcl_input_ps linear sample v4.xzw
dcl_input_ps linear sample v5.xyzw
dcl_input_ps_siv linear noperspective v6.xy, position
dcl_output o0.xyzw
dcl_temps 12
dcl_indexableTemp x0[4], 4
min r0.x, cb11[3].x, l(2.000000e-001)
sample r1.xyzw, v0.xyxx, t0.xyzw, s0
dp3 r0.y, v1.xyzx, v1.xyzx
rsq r0.y, r0.y
mul r2.xyz, r0.yyyy, v1.xyzx
sample r3.xyzw, v0.xyxx, t4.xyzw, s4
mul r3.xy, r3.xyxx, r3.xyxx
dp3 r0.z, r3.xyzx, cb11[5].xyzx
mul r0.z, r0.z, v4.x
add r3.xyz, cb11[2].xyzx, l(-1.000000e+000, -1.000000e+000, -1.000000e+000, 0.000000e+000)
mad r3.xyz, v4.wwww, r3.xyzx, l(1.000000e+000, 1.000000e+000, 1.000000e+000, 0.000000e+000)
mul r1.xyz, r1.xyzx, r3.xyzx
mad_sat r0.w, cb11[2].w, v4.w, r1.w
mul r1.xyz, r1.xyzx, cb11[0].xyzx
mul r1.xyz, r1.xyzx, v4.xxxx
mul r3.xy, v4.xxxx, cb2[12].zyzz
add_sat r1.w, cb2[13].z, cb3[49].w
mul r1.w, r1.w, r3.y
mul r0.z, r0.z, v1.w
mul r0.z, r0.z, l(5.000000e-002)
add r3.yz, -cb11[3].zzzz, l(0.000000e+000, 1.000000e+000, 2.000000e+000, 0.000000e+000)
mul r2.w, r3.y, v4.z
mul r4.xy, r3.zzzz, v0.zwzz
sample r4.xyzw, r4.xyxx, t3.xyzw, s3
mul r3.z, cb5[3].z, cb11[3].z
add r4.w, -r4.x, r4.z
mad r4.x, r3.z, r4.w, r4.x
mul r4.xy, r0.xxxx, r4.xyxx
mad r3.z, v4.z, r3.y, l(-1.000000e+000)
mad r3.y, r3.y, r3.z, l(1.000000e+000)
mul r3.z, r3.y, r4.x
mad r5.xyz, cb11[4].xyzx, cb11[3].yyyy, -r1.xyzx
mad r1.xyz, r3.zzzz, r5.xyzx, r1.xyzx
mul r0.x, r0.x, r2.w
add r5.xyz, -r1.xyzx, r4.zzzz
mad r1.xyz, r0.xxxx, r5.xyzx, r1.xyzx
mad r0.x, r4.x, r3.y, r0.w
mad r0.w, -r4.y, r3.y, l(1.000000e+000)
mul_sat r0.z, r0.w, r0.z
add r4.xyz, -v2.xyzx, cb1[15].xyzx
dp3 r0.w, r4.xyzx, r4.xyzx
rsq r0.w, r0.w
mul r5.xyz, r0.wwww, r4.xyzx
mad r6.xyz, r4.xyzx, r0.wwww, -cb3[0].xyzx
dp3 r2.w, r6.xyzx, r6.xyzx
rsq r2.w, r2.w
mul r6.xyz, r2.wwww, r6.xyzx
mul r2.w, r3.x, r3.x
mul r1.xyzw, r1.xyzw, r1.xyzw
mad r3.x, r3.w, l(5.120000e+002), l(-5.000000e+002)
max r3.x, r3.x, l(0.000000e+000)
mad r3.y, r3.w, l(5.120000e+002), -r3.x
mul r3.x, r3.x, l(5.580000e+002)
mad r3.x, r3.y, l(3.000000e+000), r3.x
add r3.yzw, v2.xxyz, -cb1[15].xxyz
mul r7.xyz, r3.zzzz, cb6[1].xyzx
mad r7.xyz, r3.yyyy, cb6[0].xyzx, r7.xyzx
mad r3.yzw, r3.wwww, cb6[2].xxyz, r7.xxyz
mad r7.xyz, r3.yzwy, cb6[4].xyzx, cb6[8].xyzx
mov x0[0].xyz, r7.xyzx
mad r8.xyz, r3.yzwy, cb6[5].xyzx, cb6[9].xyzx
mov x0[1].xyz, r8.xyzx
mad r9.xyz, r3.yzwy, cb6[6].xyzx, cb6[10].xyzx
mov x0[2].xyz, r9.xyzx
mad r3.yzw, r3.yyzw, cb6[7].xxyz, cb6[11].xxyz
mov x0[3].xyz, r3.yzwy
mad r3.y, -cb6[14].z, l(1.500000e+000), l(1.000000e+000)
mul r3.y, r3.y, l(5.000000e-001)
max r3.z, |r9.y|, |r9.x|
lt r3.z, r3.z, r3.y
movc r3.z, r3.z, l(2), l(3)
max r3.w, |r8.y|, |r8.x|
lt r3.w, r3.w, r3.y
movc r3.z, r3.w, l(1), r3.z
max r3.w, |r7.y|, |r7.x|
lt r3.y, r3.w, r3.y
movc r3.y, r3.y, l(0), r3.z
mov r7.xyz, x0[r3.y + 0].xyzx
itof r3.y, r3.y
add r3.z, r3.y, l(5.000000e-001)
mul r3.z, r3.z, l(2.500000e-001)
eq r8.xyzw, l(0.000000e+000, 1.000000e+000, 2.000000e+000, 3.000000e+000), r3.yyyy
and r8.xyzw, r8.xyzw, l(0x3f800000, 0x3f800000, 0x3f800000, 0x3f800000)
dp4 r3.y, r8.xyzw, cb6[12].xyzw
dp4 r3.w, r8.xyzw, cb6[13].xyzw
add r8.x, r7.x, l(5.000000e-001)
mad r8.y, r7.y, l(2.500000e-001), r3.z
ne r3.z, r3.y, l(0.000000e+000)
add r3.y, -r3.y, r7.z
deriv_rtx r9.xyw, r8.xyxy
deriv_rtx r9.z, r3.y
deriv_rty r10.xyz, r8.yxyy
deriv_rty r10.w, r3.y
mul r7.xy, r9.ywyy, r10.ywyy
mad r11.xy, r9.xzxx, r10.xzxx, -r7.xyxx
div r4.w, l(1.000000e+000, 1.000000e+000, 1.000000e+000, 1.000000e+000), r11.x
mul r5.w, r9.z, r10.y
mad r11.z, r9.x, r10.w, -r5.w
mul r7.xy, r4.wwww, r11.yzyy
max r7.xy, r7.xyxx, l(0.000000e+000, 0.000000e+000, 0.000000e+000, 0.000000e+000)
min r7.xy, r7.xyxx, l(5.000000e-001, 5.000000e-001, 0.000000e+000, 0.000000e+000)
mad r3.y, -r3.w, r7.x, r3.y
mad r3.y, -r3.w, r7.y, r3.y
movc r3.y, r3.z, r3.y, r7.z
sample_c_lz r3.y, r8.xyxx, t15.xxxx, s15, r3.y
dp3 r3.z, r2.xyzx, -cb3[0].xyzx
mov_sat r3.w, r3.z
add r3.w, -|r3.z|, r3.w
mad r3.z, r0.x, r3.w, |r3.z|
dp3_sat r7.x, r5.xyzx, r2.xyzx
dp3_sat r7.y, r6.xyzx, -cb3[0].xyzx
add r7.xy, -r7.xyxx, l(1.000000e+000, 1.000000e+000, 0.000000e+000, 0.000000e+000)
mul r7.zw, r7.xxxy, r7.xxxy
mul r7.zw, r7.zzzw, r7.zzzw
mul r7.yw, r7.xxxy, r7.zzzw
add r8.xy, r3.xxxx, l(2.000000e+000, 1.000000e-008, 0.000000e+000, 0.000000e+000)
mul r3.w, r8.x, l(1.250000e-001)
max r4.w, r0.x, r7.y
mad r5.w, r7.z, r7.x, l(-1.000000e+000)
mad r5.w, r4.w, r5.w, l(1.000000e+000)
mad r5.w, -r0.z, r5.w, l(1.000000e+000)
dp3 r6.x, r2.xyzx, r6.xyzx
add_sat r6.x, r6.x, l(1.000000e-008)
log r6.x, r6.x
mul r6.x, r6.x, r8.y
exp r6.x, r6.x
mul r6.x, r7.w, r6.x
mul r6.x, r3.w, r6.x
mul r6.x, r0.z, r6.x
mul r6.x, r3.z, r6.x
mul r3.z, r3.z, r5.w
mad r6.xyz, r1.xyzx, r3.zzzz, r6.xxxx
mul r6.xyz, r6.xyzx, cb3[1].xyzx
ige r3.z, l(0), cb3[2].x
if_z r3.z
  eq r6.w, cb3[19].w, l(0.000000e+000)
  add r7.xyz, -v2.xyzx, cb3[3].xyzx
  add r8.xzw, v2.xxyz, -cb3[3].xxyz
  dp3 r7.w, r8.xzwx, cb3[11].xyzx
  add r8.x, cb3[19].w, l(1.000000e-004)
  div_sat r7.w, r7.w, r8.x
  mul r7.w, r7.w, cb3[19].w
  mad r8.xzw, cb3[11].xxyz, r7.wwww, cb3[3].xxyz
  add r8.xzw, r8.xxzw, -v2.xxyz
  movc r7.xyz, r6.wwww, r7.xyzx, r8.xzwx
  dp3 r6.w, r7.xyzx, r7.xyzx
  add r7.xyz, r7.xyzx, l(1.000000e-006, 1.000000e-006, 1.000000e-006, 0.000000e+000)
  dp3 r7.w, r7.xyzx, r7.xyzx
  rsq r7.w, r7.w
  mul r7.xyz, r7.wwww, r7.xyzx
  mad_sat r6.w, -r6.w, cb3[3].w, l(1.000000e+000)
  add r7.w, -cb3[11].w, l(1.000000e+000)
  mad r7.w, r7.w, r6.w, cb3[11].w
  div r6.w, r6.w, r7.w
  dp3 r7.w, r7.xyzx, -cb3[11].xyzx
  mad_sat r7.w, r7.w, cb3[27].x, cb3[35].x
  dp3 r8.x, r7.xyzx, r2.xyzx
  mov_sat r8.z, r8.x
  add r8.z, -|r8.x|, r8.z
  mad r8.x, r0.x, r8.z, |r8.x|
  mul r7.w, r7.w, r8.x
  mul r8.x, r6.w, r7.w
  mul r8.xzw, r8.xxxx, cb3[19].xxyz
  mul r8.xzw, r1.xxyz, r8.xxzw
  mad r7.xyz, r4.xyzx, r0.wwww, r7.xyzx
  dp3 r9.x, r7.xyzx, r7.xyzx
  rsq r9.x, r9.x
  mul r7.xyz, r7.xyzx, r9.xxxx
  dp3_sat r9.x, r7.xyzx, r5.xyzx
  add r9.x, -r9.x, l(1.000000e+000)
  mul r9.y, r9.x, r9.x
  mul r9.y, r9.y, r9.y
  mul r9.x, r9.y, r9.x
  dp3_sat r7.x, r7.xyzx, r2.xyzx
  log r7.x, r7.x
  mul r7.x, r7.x, r8.y
  exp r7.x, r7.x
  mul r7.x, r7.x, r9.x
  mul r7.x, r7.w, r7.x
  mul r6.w, r6.w, r7.x
  mul r6.w, r3.w, r6.w
  mul r7.xyz, r6.wwww, cb3[19].xyzx
else 
  mov r8.xzw, l(0,0,0,0)
  mov r7.xyz, l(0,0,0,0)
endif 
ilt r6.w, l(0), cb3[2].x
if_nz r6.w
  ige r7.w, l(1), cb3[2].x
  or r6.w, r3.z, r6.w
  movc r3.z, r7.w, r6.w, r3.z
  if_z r3.z
    eq r6.w, cb3[20].w, l(0.000000e+000)
    add r9.xyz, -v2.xyzx, cb3[4].xyzx
    add r10.xyz, v2.xyzx, -cb3[4].xyzx
    dp3 r7.w, r10.xyzx, cb3[12].xyzx
    add r9.w, cb3[20].w, l(1.000000e-004)
    div_sat r7.w, r7.w, r9.w
    mul r7.w, r7.w, cb3[20].w
    mad r10.xyz, cb3[12].xyzx, r7.wwww, cb3[4].xyzx
    add r10.xyz, r10.xyzx, -v2.xyzx
    movc r9.xyz, r6.wwww, r9.xyzx, r10.xyzx
    dp3 r6.w, r9.xyzx, r9.xyzx
    add r9.xyz, r9.xyzx, l(1.000000e-006, 1.000000e-006, 1.000000e-006, 0.000000e+000)
    dp3 r7.w, r9.xyzx, r9.xyzx
    rsq r7.w, r7.w
    mul r9.xyz, r7.wwww, r9.xyzx
    mad_sat r6.w, -r6.w, cb3[4].w, l(1.000000e+000)
    add r7.w, -cb3[12].w, l(1.000000e+000)
    mad r7.w, r7.w, r6.w, cb3[12].w
    div r6.w, r6.w, r7.w
    dp3 r7.w, r9.xyzx, -cb3[12].xyzx
    mad_sat r7.w, r7.w, cb3[28].x, cb3[36].x
    dp3 r9.w, r9.xyzx, r2.xyzx
    mov_sat r10.x, r9.w
    add r10.x, -|r9.w|, r10.x
    mad r9.w, r0.x, r10.x, |r9.w|
    mul r7.w, r7.w, r9.w
    mul r9.w, r6.w, r7.w
    mul r10.xyz, r9.wwww, cb3[20].xyzx
    mad r8.xzw, r10.xxyz, r1.xxyz, r8.xxzw
    mad r9.xyz, r4.xyzx, r0.wwww, r9.xyzx
    dp3 r9.w, r9.xyzx, r9.xyzx
    rsq r9.w, r9.w
    mul r9.xyz, r9.wwww, r9.xyzx
    dp3_sat r9.w, r9.xyzx, r5.xyzx
    add r9.w, -r9.w, l(1.000000e+000)
    mul r10.x, r9.w, r9.w
    mul r10.x, r10.x, r10.x
    mul r9.w, r9.w, r10.x
    dp3_sat r9.x, r9.xyzx, r2.xyzx
    log r9.x, r9.x
    mul r9.x, r8.y, r9.x
    exp r9.x, r9.x
    mul r9.x, r9.x, r9.w
    mul r7.w, r7.w, r9.x
    mul r6.w, r6.w, r7.w
    mul r6.w, r3.w, r6.w
    mad r7.xyz, r6.wwww, cb3[20].xyzx, r7.xyzx
  endif 
else 
  mov r3.z, l(-1)
endif 
if_z r3.z
  ige r6.w, l(2), cb3[2].x
  or r3.z, r3.z, r6.w
  if_z r3.z
    eq r6.w, cb3[21].w, l(0.000000e+000)
    add r9.xyz, -v2.xyzx, cb3[5].xyzx
    add r10.xyz, v2.xyzx, -cb3[5].xyzx
    dp3 r7.w, r10.xyzx, cb3[13].xyzx
    add r9.w, cb3[21].w, l(1.000000e-004)
    div_sat r7.w, r7.w, r9.w
    mul r7.w, r7.w, cb3[21].w
    mad r10.xyz, cb3[13].xyzx, r7.wwww, cb3[5].xyzx
    add r10.xyz, r10.xyzx, -v2.xyzx
    movc r9.xyz, r6.wwww, r9.xyzx, r10.xyzx
    dp3 r6.w, r9.xyzx, r9.xyzx
    add r9.xyz, r9.xyzx, l(1.000000e-006, 1.000000e-006, 1.000000e-006, 0.000000e+000)
    dp3 r7.w, r9.xyzx, r9.xyzx
    rsq r7.w, r7.w
    mul r9.xyz, r7.wwww, r9.xyzx
    mad_sat r6.w, -r6.w, cb3[5].w, l(1.000000e+000)
    add r7.w, -cb3[13].w, l(1.000000e+000)
    mad r7.w, r7.w, r6.w, cb3[13].w
    div r6.w, r6.w, r7.w
    dp3 r7.w, r9.xyzx, -cb3[13].xyzx
    mad_sat r7.w, r7.w, cb3[29].x, cb3[37].x
    dp3 r9.w, r9.xyzx, r2.xyzx
    mov_sat r10.x, r9.w
    add r10.x, -|r9.w|, r10.x
    mad r9.w, r0.x, r10.x, |r9.w|
    mul r7.w, r7.w, r9.w
    mul r9.w, r6.w, r7.w
    mul r10.xyz, r9.wwww, cb3[21].xyzx
    mad r8.xzw, r10.xxyz, r1.xxyz, r8.xxzw
    mad r9.xyz, r4.xyzx, r0.wwww, r9.xyzx
    dp3 r9.w, r9.xyzx, r9.xyzx
    rsq r9.w, r9.w
    mul r9.xyz, r9.wwww, r9.xyzx
    dp3_sat r9.w, r9.xyzx, r5.xyzx
    add r9.w, -r9.w, l(1.000000e+000)
    mul r10.x, r9.w, r9.w
    mul r10.x, r10.x, r10.x
    mul r9.w, r9.w, r10.x
    dp3_sat r9.x, r9.xyzx, r2.xyzx
    log r9.x, r9.x
    mul r9.x, r8.y, r9.x
    exp r9.x, r9.x
    mul r9.x, r9.x, r9.w
    mul r7.w, r7.w, r9.x
    mul r6.w, r6.w, r7.w
    mul r6.w, r3.w, r6.w
    mad r7.xyz, r6.wwww, cb3[21].xyzx, r7.xyzx
  endif 
else 
  mov r3.z, l(-1)
endif 
if_z r3.z
  ige r6.w, l(3), cb3[2].x
  or r3.z, r3.z, r6.w
  if_z r3.z
    eq r6.w, cb3[22].w, l(0.000000e+000)
    add r9.xyz, -v2.xyzx, cb3[6].xyzx
    add r10.xyz, v2.xyzx, -cb3[6].xyzx
    dp3 r7.w, r10.xyzx, cb3[14].xyzx
    add r9.w, cb3[22].w, l(1.000000e-004)
    div_sat r7.w, r7.w, r9.w
    mul r7.w, r7.w, cb3[22].w
    mad r10.xyz, cb3[14].xyzx, r7.wwww, cb3[6].xyzx
    add r10.xyz, r10.xyzx, -v2.xyzx
    movc r9.xyz, r6.wwww, r9.xyzx, r10.xyzx
    dp3 r6.w, r9.xyzx, r9.xyzx
    add r9.xyz, r9.xyzx, l(1.000000e-006, 1.000000e-006, 1.000000e-006, 0.000000e+000)
    dp3 r7.w, r9.xyzx, r9.xyzx
    rsq r7.w, r7.w
    mul r9.xyz, r7.wwww, r9.xyzx
    mad_sat r6.w, -r6.w, cb3[6].w, l(1.000000e+000)
    add r7.w, -cb3[14].w, l(1.000000e+000)
    mad r7.w, r7.w, r6.w, cb3[14].w
    div r6.w, r6.w, r7.w
    dp3 r7.w, r9.xyzx, -cb3[14].xyzx
    mad_sat r7.w, r7.w, cb3[30].x, cb3[38].x
    dp3 r9.w, r9.xyzx, r2.xyzx
    mov_sat r10.x, r9.w
    add r10.x, -|r9.w|, r10.x
    mad r9.w, r0.x, r10.x, |r9.w|
    mul r7.w, r7.w, r9.w
    mul r9.w, r6.w, r7.w
    mul r10.xyz, r9.wwww, cb3[22].xyzx
    mad r8.xzw, r10.xxyz, r1.xxyz, r8.xxzw
    mad r9.xyz, r4.xyzx, r0.wwww, r9.xyzx
    dp3 r9.w, r9.xyzx, r9.xyzx
    rsq r9.w, r9.w
    mul r9.xyz, r9.wwww, r9.xyzx
    dp3_sat r9.w, r9.xyzx, r5.xyzx
    add r9.w, -r9.w, l(1.000000e+000)
    mul r10.x, r9.w, r9.w
    mul r10.x, r10.x, r10.x
    mul r9.w, r9.w, r10.x
    dp3_sat r9.x, r9.xyzx, r2.xyzx
    log r9.x, r9.x
    mul r9.x, r8.y, r9.x
    exp r9.x, r9.x
    mul r9.x, r9.x, r9.w
    mul r7.w, r7.w, r9.x
    mul r6.w, r6.w, r7.w
    mul r6.w, r3.w, r6.w
    mad r7.xyz, r6.wwww, cb3[22].xyzx, r7.xyzx
  endif 
else 
  mov r3.z, l(-1)
endif 
if_z r3.z
  ige r6.w, l(4), cb3[2].x
  or r3.z, r3.z, r6.w
  if_z r3.z
    eq r6.w, cb3[23].w, l(0.000000e+000)
    add r9.xyz, -v2.xyzx, cb3[7].xyzx
    add r10.xyz, v2.xyzx, -cb3[7].xyzx
    dp3 r7.w, r10.xyzx, cb3[15].xyzx
    add r9.w, cb3[23].w, l(1.000000e-004)
    div_sat r7.w, r7.w, r9.w
    mul r7.w, r7.w, cb3[23].w
    mad r10.xyz, cb3[15].xyzx, r7.wwww, cb3[7].xyzx
    add r10.xyz, r10.xyzx, -v2.xyzx
    movc r9.xyz, r6.wwww, r9.xyzx, r10.xyzx
    dp3 r6.w, r9.xyzx, r9.xyzx
    add r9.xyz, r9.xyzx, l(1.000000e-006, 1.000000e-006, 1.000000e-006, 0.000000e+000)
    dp3 r7.w, r9.xyzx, r9.xyzx
    rsq r7.w, r7.w
    mul r9.xyz, r7.wwww, r9.xyzx
    mad_sat r6.w, -r6.w, cb3[7].w, l(1.000000e+000)
    add r7.w, -cb3[15].w, l(1.000000e+000)
    mad r7.w, r7.w, r6.w, cb3[15].w
    div r6.w, r6.w, r7.w
    dp3 r7.w, r9.xyzx, -cb3[15].xyzx
    mad_sat r7.w, r7.w, cb3[31].x, cb3[39].x
    dp3 r9.w, r9.xyzx, r2.xyzx
    mov_sat r10.x, r9.w
    add r10.x, -|r9.w|, r10.x
    mad r9.w, r0.x, r10.x, |r9.w|
    mul r7.w, r7.w, r9.w
    mul r9.w, r6.w, r7.w
    mul r10.xyz, r9.wwww, cb3[23].xyzx
    mad r8.xzw, r10.xxyz, r1.xxyz, r8.xxzw
    mad r9.xyz, r4.xyzx, r0.wwww, r9.xyzx
    dp3 r9.w, r9.xyzx, r9.xyzx
    rsq r9.w, r9.w
    mul r9.xyz, r9.wwww, r9.xyzx
    dp3_sat r9.w, r9.xyzx, r5.xyzx
    add r9.w, -r9.w, l(1.000000e+000)
    mul r10.x, r9.w, r9.w
    mul r10.x, r10.x, r10.x
    mul r9.w, r9.w, r10.x
    dp3_sat r9.x, r9.xyzx, r2.xyzx
    log r9.x, r9.x
    mul r9.x, r8.y, r9.x
    exp r9.x, r9.x
    mul r9.x, r9.x, r9.w
    mul r7.w, r7.w, r9.x
    mul r6.w, r6.w, r7.w
    mul r6.w, r3.w, r6.w
    mad r7.xyz, r6.wwww, cb3[23].xyzx, r7.xyzx
  endif 
else 
  mov r3.z, l(-1)
endif 
if_z r3.z
  ige r6.w, l(5), cb3[2].x
  or r3.z, r3.z, r6.w
  if_z r3.z
    eq r6.w, cb3[24].w, l(0.000000e+000)
    add r9.xyz, -v2.xyzx, cb3[8].xyzx
    add r10.xyz, v2.xyzx, -cb3[8].xyzx
    dp3 r7.w, r10.xyzx, cb3[16].xyzx
    add r9.w, cb3[24].w, l(1.000000e-004)
    div_sat r7.w, r7.w, r9.w
    mul r7.w, r7.w, cb3[24].w
    mad r10.xyz, cb3[16].xyzx, r7.wwww, cb3[8].xyzx
    add r10.xyz, r10.xyzx, -v2.xyzx
    movc r9.xyz, r6.wwww, r9.xyzx, r10.xyzx
    dp3 r6.w, r9.xyzx, r9.xyzx
    add r9.xyz, r9.xyzx, l(1.000000e-006, 1.000000e-006, 1.000000e-006, 0.000000e+000)
    dp3 r7.w, r9.xyzx, r9.xyzx
    rsq r7.w, r7.w
    mul r9.xyz, r7.wwww, r9.xyzx
    mad_sat r6.w, -r6.w, cb3[8].w, l(1.000000e+000)
    add r7.w, -cb3[16].w, l(1.000000e+000)
    mad r7.w, r7.w, r6.w, cb3[16].w
    div r6.w, r6.w, r7.w
    dp3 r7.w, r9.xyzx, -cb3[16].xyzx
    mad_sat r7.w, r7.w, cb3[32].x, cb3[40].x
    dp3 r9.w, r9.xyzx, r2.xyzx
    mov_sat r10.x, r9.w
    add r10.x, -|r9.w|, r10.x
    mad r9.w, r0.x, r10.x, |r9.w|
    mul r7.w, r7.w, r9.w
    mul r9.w, r6.w, r7.w
    mul r10.xyz, r9.wwww, cb3[24].xyzx
    mad r8.xzw, r10.xxyz, r1.xxyz, r8.xxzw
    mad r9.xyz, r4.xyzx, r0.wwww, r9.xyzx
    dp3 r9.w, r9.xyzx, r9.xyzx
    rsq r9.w, r9.w
    mul r9.xyz, r9.wwww, r9.xyzx
    dp3_sat r9.w, r9.xyzx, r5.xyzx
    add r9.w, -r9.w, l(1.000000e+000)
    mul r10.x, r9.w, r9.w
    mul r10.x, r10.x, r10.x
    mul r9.w, r9.w, r10.x
    dp3_sat r9.x, r9.xyzx, r2.xyzx
    log r9.x, r9.x
    mul r9.x, r8.y, r9.x
    exp r9.x, r9.x
    mul r9.x, r9.x, r9.w
    mul r7.w, r7.w, r9.x
    mul r6.w, r6.w, r7.w
    mul r6.w, r3.w, r6.w
    mad r7.xyz, r6.wwww, cb3[24].xyzx, r7.xyzx
  endif 
else 
  mov r3.z, l(-1)
endif 
if_z r3.z
  ige r6.w, l(6), cb3[2].x
  or r3.z, r3.z, r6.w
  if_z r3.z
    eq r6.w, cb3[25].w, l(0.000000e+000)
    add r9.xyz, -v2.xyzx, cb3[9].xyzx
    add r10.xyz, v2.xyzx, -cb3[9].xyzx
    dp3 r7.w, r10.xyzx, cb3[17].xyzx
    add r9.w, cb3[25].w, l(1.000000e-004)
    div_sat r7.w, r7.w, r9.w
    mul r7.w, r7.w, cb3[25].w
    mad r10.xyz, cb3[17].xyzx, r7.wwww, cb3[9].xyzx
    add r10.xyz, r10.xyzx, -v2.xyzx
    movc r9.xyz, r6.wwww, r9.xyzx, r10.xyzx
    dp3 r6.w, r9.xyzx, r9.xyzx
    add r9.xyz, r9.xyzx, l(1.000000e-006, 1.000000e-006, 1.000000e-006, 0.000000e+000)
    dp3 r7.w, r9.xyzx, r9.xyzx
    rsq r7.w, r7.w
    mul r9.xyz, r7.wwww, r9.xyzx
    mad_sat r6.w, -r6.w, cb3[9].w, l(1.000000e+000)
    add r7.w, -cb3[17].w, l(1.000000e+000)
    mad r7.w, r7.w, r6.w, cb3[17].w
    div r6.w, r6.w, r7.w
    dp3 r7.w, r9.xyzx, -cb3[17].xyzx
    mad_sat r7.w, r7.w, cb3[33].x, cb3[41].x
    dp3 r9.w, r9.xyzx, r2.xyzx
    mov_sat r10.x, r9.w
    add r10.x, -|r9.w|, r10.x
    mad r9.w, r0.x, r10.x, |r9.w|
    mul r7.w, r7.w, r9.w
    mul r9.w, r6.w, r7.w
    mul r10.xyz, r9.wwww, cb3[25].xyzx
    mad r8.xzw, r10.xxyz, r1.xxyz, r8.xxzw
    mad r9.xyz, r4.xyzx, r0.wwww, r9.xyzx
    dp3 r9.w, r9.xyzx, r9.xyzx
    rsq r9.w, r9.w
    mul r9.xyz, r9.wwww, r9.xyzx
    dp3_sat r9.w, r9.xyzx, r5.xyzx
    add r9.w, -r9.w, l(1.000000e+000)
    mul r10.x, r9.w, r9.w
    mul r10.x, r10.x, r10.x
    mul r9.w, r9.w, r10.x
    dp3_sat r9.x, r9.xyzx, r2.xyzx
    log r9.x, r9.x
    mul r9.x, r8.y, r9.x
    exp r9.x, r9.x
    mul r9.x, r9.x, r9.w
    mul r7.w, r7.w, r9.x
    mul r6.w, r6.w, r7.w
    mul r6.w, r3.w, r6.w
    mad r7.xyz, r6.wwww, cb3[25].xyzx, r7.xyzx
  endif 
else 
  mov r3.z, l(-1)
endif 
if_z r3.z
  ige r6.w, l(7), cb3[2].x
  or r3.z, r3.z, r6.w
  if_z r3.z
    eq r3.z, cb3[26].w, l(0.000000e+000)
    add r9.xyz, -v2.xyzx, cb3[10].xyzx
    add r10.xyz, v2.xyzx, -cb3[10].xyzx
    dp3 r6.w, r10.xyzx, cb3[18].xyzx
    add r7.w, cb3[26].w, l(1.000000e-004)
    div_sat r6.w, r6.w, r7.w
    mul r6.w, r6.w, cb3[26].w
    mad r10.xyz, cb3[18].xyzx, r6.wwww, cb3[10].xyzx
    add r10.xyz, r10.xyzx, -v2.xyzx
    movc r9.xyz, r3.zzzz, r9.xyzx, r10.xyzx
    dp3 r3.z, r9.xyzx, r9.xyzx
    add r9.xyz, r9.xyzx, l(1.000000e-006, 1.000000e-006, 1.000000e-006, 0.000000e+000)
    dp3 r6.w, r9.xyzx, r9.xyzx
    rsq r6.w, r6.w
    mul r9.xyz, r6.wwww, r9.xyzx
    mad_sat r3.z, -r3.z, cb3[10].w, l(1.000000e+000)
    add r6.w, -cb3[18].w, l(1.000000e+000)
    mad r6.w, r6.w, r3.z, cb3[18].w
    div r3.z, r3.z, r6.w
    dp3 r6.w, r9.xyzx, -cb3[18].xyzx
    mad_sat r6.w, r6.w, cb3[34].x, cb3[42].x
    dp3 r7.w, r9.xyzx, r2.xyzx
    mov_sat r9.w, r7.w
    add r9.w, -|r7.w|, r9.w
    mad r0.x, r0.x, r9.w, |r7.w|
    mul r0.x, r6.w, r0.x
    mul r6.w, r3.z, r0.x
    mul r10.xyz, r6.wwww, cb3[26].xyzx
    mad r8.xzw, r10.xxyz, r1.xxyz, r8.xxzw
    mad r4.xyz, r4.xyzx, r0.wwww, r9.xyzx
    dp3 r0.w, r4.xyzx, r4.xyzx
    rsq r0.w, r0.w
    mul r4.xyz, r0.wwww, r4.xyzx
    dp3_sat r0.w, r4.xyzx, r5.xyzx
    add r0.w, -r0.w, l(1.000000e+000)
    mul r6.w, r0.w, r0.w
    mul r6.w, r6.w, r6.w
    mul r0.w, r0.w, r6.w
    dp3_sat r4.x, r4.xyzx, r2.xyzx
    log r4.x, r4.x
    mul r4.x, r4.x, r8.y
    exp r4.x, r4.x
    mul r0.w, r0.w, r4.x
    mul r0.x, r0.x, r0.w
    mul r0.x, r3.z, r0.x
    mul r0.x, r3.w, r0.x
    mad r7.xyz, r0.xxxx, cb3[26].xyzx, r7.xyzx
  endif 
endif 
mul r0.x, r5.w, r5.w
mul r0.z, r0.z, r0.z
mul r4.xyz, r7.xyzx, r0.zzzz
mad r0.xzw, r0.xxxx, r8.xxzw, r4.xxyz
mad r0.xzw, r6.xxyz, r3.yyyy, r0.xxzw
mad r0.y, v1.z, r0.y, cb3[43].w
mul r0.y, r0.y, cb3[44].w
max r0.y, r0.y, l(0.000000e+000)
mad r3.yzw, cb3[47].xxyz, r0.yyyy, cb3[48].xxyz
add r4.x, -cb2[13].z, l(1.000000e+000)
mad r6.xyz, cb3[45].xyzx, r0.yyyy, cb3[46].xyzx
mul r6.xyz, r6.xyzx, cb2[13].zzzz
mad r3.yzw, r3.yyzw, r4.xxxx, r6.xxyz
mul r3.yzw, r1.wwww, r3.yyzw
mad r4.xyz, cb3[43].xyzx, r0.yyyy, cb3[44].xyzx
mov r6.x, cb3[46].w
mov r6.y, cb3[47].w
mov r6.z, cb3[48].w
dp3_sat r0.y, r6.xyzx, r2.xyzx
mad r4.xyz, cb3[49].xyzx, r0.yyyy, r4.xyzx
mad r3.yzw, r4.xxyz, r2.wwww, r3.yyzw
mul r3.yzw, r5.wwww, r3.yyzw
mad r0.xyz, r3.yzwy, r1.xyzx, r0.xzwx
add r0.w, -r5.w, l(1.000000e+000)
dp3 r1.x, -r5.xyzx, r2.xyzx
add r1.x, r1.x, r1.x
mad r1.xyz, r2.xyzx, -r1.xxxx, -r5.xyzx
mul_sat r2.xy, r3.xxxx, l(6.666667e-004, 1.776199e-003, 0.000000e+000, 0.000000e+000)
add r2.x, -r2.x, l(1.000000e+000)
add r2.z, cb5[6].z, l(-5.000000e+000)
mul r3.x, r2.x, cb5[6].z
lt r3.x, r3.x, r2.z
mad r3.y, r2.x, cb5[6].z, l(-5.000000e+000)
mul r2.x, r2.x, r2.x
mad r2.x, r2.x, l(5.000000e+000), r2.z
movc r2.x, r3.x, r3.y, r2.x
mul r3.xyz, r1.xyxx, l(-2.500000e-001, 5.000000e-001, 2.500000e-001, 0.000000e+000)
add r1.x, |r1.z|, l(1.000000e+000)
div r3.xyz, r3.xyzx, r1.xxxx
add r3.xyz, -r3.xyzx, l(7.500000e-001, 5.000000e-001, 2.500000e-001, 0.000000e+000)
lt r1.x, l(0.000000e+000), r1.z
movc r1.xy, r1.xxxx, r3.xyxx, r3.zyzz
sample_l r3.xyzw, r1.xyxx, t1.xyzw, s1, r2.x
max r1.x, r1.w, r2.w
mul r1.xyz, r1.xxxx, r3.xyzx
mul r2.xyz, r2.yyyy, r1.xyzx
mul r2.xyz, r2.xyzx, l(6.816901e-001, 6.816901e-001, 6.816901e-001, 0.000000e+000)
mad r1.xyz, r1.xyzx, l(3.183099e-001, 3.183099e-001, 3.183099e-001, 0.000000e+000), r2.xyzx
mad r0.xyz, r1.xyzx, r0.wwww, r0.xyzx
mul_sat o0.w, r4.w, cb2[12].x
lt r0.w, l(0.000000e+000), cb2[19].y
if_nz r0.w
  mul r1.xy, v6.xyxx, cb2[15].zwzz
  sample r1.xyzw, r1.xyxx, t11.xyzw, s11
  add r0.w, r1.x, l(-1.000000e+000)
  mad_sat r0.w, cb2[19].y, r0.w, l(1.000000e+000)
else 
  mov r0.w, l(1.000000)
endif 
mul r0.w, r0.w, v5.w
add r1.xyz, -r0.xyzx, v5.xyzx
mad r0.xyz, r0.wwww, r1.xyzx, r0.xyzx
mul o0.xyz, r0.xyzx, cb2[14].zzzz
ret